package cn.jianml.swagger2.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户实体类
 * @author: wujian
 * @time: 2019/11/11
 */
@ApiModel
@Data
public class User {
    /**
     * 用户ID
     */
    @ApiModelProperty(name = "id", value = "用户ID", required = true)
    private Integer id;

    /**
     * 用户名
     */
    @ApiModelProperty(name = "username", value = "用户名", required = true)
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(name = "password", value = "密码", required = true)
    private String password;

    /**
     * 邮箱
     */
    @ApiModelProperty(name = "email", value = "邮箱", required = false)
    private String email;
}
